﻿#ifndef LEAF_H
#define LEAF_H

#include "Component.h"

class Leaf : public Component
{
public:
    Leaf(QString name);
    virtual void Add(const shared_ptr<Component>& c) override;
    virtual void Remove(const shared_ptr<Component>& c) override;
//    virtual void Add(Component* c) override;
//    virtual void Remove(Component* c) override;
    virtual void Display(int depth) override;
};

#endif // LEAF_H
